package com.anywhere.freightman.system.service;

import com.anywhere.freightman.common.IBaseService;
import com.anywhere.freightman.common.enumeration.TokenType;
import com.anywhere.freightman.system.model.AccessToken;

public interface IAccessTokenService extends IBaseService<AccessToken> {

    AccessToken getByUserId(long userId);

    AccessToken insert(long userId);

    AccessToken insert(long userId, TokenType type);

    AccessToken getByToken(String token);

    void logout(long userId, TokenType type);
}
